package com.xiaoxiang.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxiang.auth.entity.User;
import com.xiaoxiang.auth.param.UserParam;
import com.xiaoxiang.auth.result.UserResult;

import java.util.List;

/**
 * (User)表服务接口
 *
 * @author haha
 * @since 2022-02-07 18:12:12
 */
public interface UserService extends IService<User> {

    User queryByUsername(String username);

    User queryByPhone(String phone);

    List<User> queryAll(User user);

    Long addUser(UserParam userParam);

    UserResult getUserResultById(Long id);

    boolean updateUser(UserParam userParam);
}
